
.loader-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom right, #041239, #1e3a8a, #f59e0b); /* biru → ungu → amber */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200000;
}
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    border: 4px solid #f59e0b;
    animation: loader 2s infinite ease;
}
.loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #f59e0b;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% { transform: rotate(0deg);}
    25% { transform: rotate(180deg);}
    50% { transform: rotate(180deg);}
    75% { transform: rotate(360deg);}
    100% { transform: rotate(360deg);}
}
  
@keyframes loader-inner {
    0% { height: 0%;}
    25% { height: 0%;}
    50% { height: 100%;}
    75% { height: 100%;}
    100% { height: 0%;}
}

/* Animasi Fade In */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Animasi Floating */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Wrapper medsos */
.medsos ul {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.medsos ul li {
  position: relative;
}

/* Tombol sosmed */
.medsos ul li a {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #c2c2c2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Glow sesuai brand */
.medsos ul li:nth-child(1) a:hover {
  color: #006eff;
  box-shadow: 0 0 15px #006eff, 0 0 30px #006eff;
}
.medsos ul li:nth-child(2) a:hover {
  color: #e1306c;
  box-shadow: 0 0 15px #e1306c, 0 0 30px #e1306c;
}
.medsos ul li:nth-child(3) a:hover {
  color: #131313;
  box-shadow: 0 0 15px #131313, 0 0 30px #131313;
}
.medsos ul li:nth-child(4) a:hover {
  color: #d50700;
  box-shadow: 0 0 15px #d50700, 0 0 30px #d50700;
}
.medsos ul li:nth-child(5) a:hover {
  color: #ffffff;
  box-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
}
.medsos ul li:nth-child(6) a:hover {
  color: #00d246;
  box-shadow: 0 0 15px #00d246, 0 0 30px #00d246;
}

/* Pulse Glow (scale + shadow) */
@keyframes pulseGlow {
  from {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
  }
  to {
    transform: scale(1.12);
    box-shadow: 0 0 25px currentColor, 0 0 45px currentColor;
  }
}

/* Terapkan pulse saat hover */
.medsos ul li a:hover {
  animation: pulseGlow 1.2s infinite alternate;
}

@keyframes waveIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Animasi popup */
@keyframes popupShow {
  0% { transform: scale(0.7) translateY(40px); opacity: 0; }
  60% { transform: scale(1.05) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 225, 100, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 249, 225, 0.8); }
}

@keyframes floatingDots {
  0% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.7; }
  100% { transform: translateY(0) scale(1); opacity: 0.3; }
}

.particle {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255,255,255,0.3);
  animation: floatingDots 6s infinite ease-in-out;
}
.particle:nth-child(1) { width: 8px; height: 8px; top: 15%; left: 25%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 40%; left: 70%; animation-delay: 2s; }
.particle:nth-child(3) { width: 10px; height: 10px; top: 70%; left: 40%; animation-delay: 1s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 25%; left: 80%; animation-delay: 3s; }

.highlight-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Efek idle glow + bounce tombol */
@keyframes idle-glow {
0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}
50% {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(255,255,255,0.8);
}
}
.animate-idle-glow {
animation: idle-glow 2.5s ease-in-out infinite;
}

/* Tooltip bounce animasi */
@keyframes tooltip-bounce {
0%, 100% { transform: translateY(0); opacity: 1; }
50% { transform: translateY(-5px); opacity: 1; }
}
.animate-tooltip-bounce {
animation: tooltip-bounce 2s ease-in-out infinite;
}

input[type="password"]::-ms-reveal {
    display: none;
}
input[type="password"]::-ms-clear {
    display: none;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.4);
  transition: width 0.4s ease, padding 0.4s ease;
  overflow: visible;
}
.sidebar.expanded { width: 220px; padding: 16px; }
.sidebar.collapsed { width: 80px; padding: 12px; }

.menu-label { transition: opacity 0.3s ease, transform 0.3s ease; }
.sidebar.collapsed .menu-label {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.sidebar-item {
  transition: all 0.3s ease;
}
.sidebar-item:hover {
  transform: translateX(5px);
  background-color: rgba(255, 255, 255, 0.08);
}
.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #facc15;
}

.glow {
  text-shadow: 0 0 12px #facc15, 0 0 20px rgba(250, 200, 21, 0.4);
}

/* ANIMASI HALAMAN */
.page {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}
.page.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* SWEETALERT FIX */
.swal2-container {
  z-index: 9999 !important;
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 15px;
  right: 25px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: #facc15;
  box-shadow: 0 0 15px rgba(250, 200, 21, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
}
/* footer:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(250, 200, 21, 0.3);
} */

.pagination-info{
    color: white !important;
}

/* Untuk Laravel pagination default Tailwind */
nav[role="navigation"] p {
    color: white !important;
}